import Vue from "vue";
import App from "./App.vue";
import router from "./router/router";
import store from "./store/store";
import Element   from "element-ui"
import interceptor from './untils/interceptors'
import './plugins/element.js'
import 'element-ui/lib/theme-chalk/index.css'
import './styles/index.scss'
import './icons'//引入svg图标,需要用svg-sprite-loader做处理

import "./untils/permission"

//引入mockjs
import "../mock/index"

import i18n from './lang/index'

Vue.config.productionTip = false;

// Vue.use(ElementUI, { locale })

Vue.use(Element,{
  i18n:(key,value)=>i18n.t(key,value)
})
const app=new Vue({
  router,
  store,
   i18n,
  render: h => h(App)
}).$mount("#app");

// 执行拦截器初始化
interceptor(app);